package com.example.xuliehua;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.util.Log;


public class ReadActivity extends AppCompatActivity {

    String TAG = "ReadActivity";
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_read);
       // Person person = (Person)getIntent().getSerializableExtra("MainActivity");
       // Animal animal = (Animal)getIntent().getParcelableExtra("MainActivity");
       MoveLife moveLife= (MoveLife)getIntent().getSerializableExtra("MainActivity");
        Log.d(TAG,moveLife.getPerson().getName()+"  "+moveLife.getPerson().getAge()+"   "+moveLife.getNumber()+" "+moveLife.getLiveAddress());

    }
}
